import request from '@/utils/request'

// 项目设备列表
export function listProEquipment(query) {
  return request({
    url: '/supervise/proEquipmentApi/list',
    method: 'post',
    params: query
  })
}

// 项目设备列表新增
export function addProEquipment(data) {
  return request({
    url: '/supervise/proEquipmentApi/add',
    method: 'post',
    data: data
  })
}

// 项目设备列表移除绑定
export function removeProEquipment(id) {
  return request({
    url: '/supervise/proEquipmentApi/remove',
    method: 'post',
    params: id
  })
}

// 项目设备-勘探点列表
export function listSelectByProEquipmentId(query) {
  return request({
    url: '/supervise/explorationApi/selectByProEquipmentId',
    method: 'post',
    params: query
  })
}

// 项目设备分配勘探点新增
export function addProEquipmentExploration(data) {
  return request({
    url: '/supervise/proEquipmentExplorationApi/addByEquipmentExploration',
    method: 'post',
    data: data
  })
}

// 项目设备分配勘探点删除
export function removeProEquipmentExploration(id) {
  return request({
    url: '/supervise/proEquipmentExplorationApi/remove',
    method: 'post',
    params: id
  })
}
